package com.zh.operation.service.impl;

import com.zh.common.utils.StringUtil;
import com.zh.operation.dao.PaymentDao;
import com.zh.operation.domain.PaymentDO;
import com.zh.operation.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class PaymentServiceImpl implements PaymentService {
	@Autowired
	private PaymentDao paymentDao;
	
	@Override
	public PaymentDO get(String id){
		return paymentDao.get(id);
	}
	
	@Override
	public List<PaymentDO> list(Map<String, Object> map){
		return paymentDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return paymentDao.count(map);
	}
	
	@Override
	public int save(PaymentDO payment){
		payment.setId(StringUtil.generalKeyword());
		return paymentDao.save(payment);
	}
	
	@Override
	public int update(PaymentDO payment){
		return paymentDao.update(payment);
	}
	
	@Override
	public int remove(String id){
		return paymentDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return paymentDao.batchRemove(ids);
	}

	@Override
	public List<PaymentDO> getPayment(String id) {
		return paymentDao.getPayment(id);
	}

}
